import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import '../src/utils/flexible'
import 'wow.js/css/libs/animate.css'
import './fonts/iconfont/iconfont.css'

// import './mock/index.js' // 引入模拟API

//实现3D轮播图
// import Carousel3d from 'vue-carousel-3d'
// Vue.use(Carousel3d)

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

//XML与JSON的转换工具
// import x2js from 'x2js'
// Vue.prototype.$x2js = new x2js();

// import util from './utils/util'
// import cookies from './utils/cookies'
import * as echarts from 'echarts'
import "vue-virtual-scroller/dist/vue-virtual-scroller.css" // 引入虚拟滚动的 css
import VueVirtualScroller from "vue-virtual-scroller" // 引入虚拟滚动
Vue.use(VueVirtualScroller)

// Vue.prototype.$util = util;
// Vue.prototype.$cookies = cookies;

Vue.prototype.$echarts = echarts;

Vue.use(ElementUI)
import './map/js/china.js'
Vue.config.productionTip = false
//注销所有console.log
// console.log = function(){}

// 实现全局路由守卫
router.beforeEach((to, from, next) => {
    next();
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
